Integrand size = 24, antiderivative size = 68 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=\frac {i \sec ^3(c+d x)}{5 d (a+i a \tan (c+d x))^4}+\frac {i \sec ^3(c+d x)}{15 a d (a+i a \tan (c+d x))^3} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3583, 3569} \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=\frac {i \sec ^3(c+d x)}{15 a d (a+i a \tan (c+d x))^3}+\frac {i \sec ^3(c+d x)}{5 d (a+i a \tan (c+d x))^4} \]
[In]
[Out]
Rule 3569
Rule 3583
Rubi steps \begin{align*} \text {integral}& = \frac {i \sec ^3(c+d x)}{5 d (a+i a \tan (c+d x))^4}+\frac {\int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^3} \, dx}{5 a} \\ & = \frac {i \sec ^3(c+d x)}{5 d (a+i a \tan (c+d x))^4}+\frac {i \sec ^3(c+d x)}{15 a d (a+i a \tan (c+d x))^3} \\ \end{align*}
Time = 0.38 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.59 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=-\frac {\sec ^3(c+d x) (-4 i+\tan (c+d x))}{15 a^4 d (-i+\tan (c+d x))^4} \]
[In]
[Out]
Time = 0.82 (sec) , antiderivative size = 38, normalized size of antiderivative = 0.56
method | result | size |
risch | \(\frac {i {\mathrm e}^{-3 i \left (d x +c \right )}}{6 a^{4} d}+\frac {i {\mathrm e}^{-5 i \left (d x +c \right )}}{10 a^{4} d}\) | \(38\) |
derivativedivides | \(\frac {-\frac {28}{3 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3}}+\frac {6 i}{\left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}-\frac {8 i}{\left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}+\frac {2}{-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}+\frac {16}{5 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{5}}}{a^{4} d}\) | \(90\) |
default | \(\frac {-\frac {28}{3 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3}}+\frac {6 i}{\left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}-\frac {8 i}{\left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}+\frac {2}{-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}+\frac {16}{5 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{5}}}{a^{4} d}\) | \(90\) |
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.44 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=\frac {{\left (5 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + 3 i\right )} e^{\left (-5 i \, d x - 5 i \, c\right )}}{30 \, a^{4} d} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 182 vs. \(2 (54) = 108\).
Time = 1.15 (sec) , antiderivative size = 182, normalized size of antiderivative = 2.68 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=\begin {cases} - \frac {\tan {\left (c + d x \right )} \sec ^{3}{\left (c + d x \right )}}{15 a^{4} d \tan ^{4}{\left (c + d x \right )} - 60 i a^{4} d \tan ^{3}{\left (c + d x \right )} - 90 a^{4} d \tan ^{2}{\left (c + d x \right )} + 60 i a^{4} d \tan {\left (c + d x \right )} + 15 a^{4} d} + \frac {4 i \sec ^{3}{\left (c + d x \right )}}{15 a^{4} d \tan ^{4}{\left (c + d x \right )} - 60 i a^{4} d \tan ^{3}{\left (c + d x \right )} - 90 a^{4} d \tan ^{2}{\left (c + d x \right )} + 60 i a^{4} d \tan {\left (c + d x \right )} + 15 a^{4} d} & \text {for}\: d \neq 0 \\\frac {x \sec ^{3}{\left (c \right )}}{\left (i a \tan {\left (c \right )} + a\right )^{4}} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.21 (sec) , antiderivative size = 53, normalized size of antiderivative = 0.78 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=\frac {3 i \, \cos \left (5 \, d x + 5 \, c\right ) + 5 i \, \cos \left (3 \, d x + 3 \, c\right ) + 3 \, \sin \left (5 \, d x + 5 \, c\right ) + 5 \, \sin \left (3 \, d x + 3 \, c\right )}{30 \, a^{4} d} \]
[In]
[Out]
none
Time = 0.64 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.07 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=\frac {2 \, {\left (15 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 15 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 25 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 5 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 4\right )}}{15 \, a^{4} d {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - i\right )}^{5}} \]
[In]
[Out]
Time = 4.41 (sec) , antiderivative size = 133, normalized size of antiderivative = 1.96 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=\frac {2\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,15{}\mathrm {i}+15\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,25{}\mathrm {i}-5\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+4{}\mathrm {i}\right )}{15\,a^4\,d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,1{}\mathrm {i}+5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,10{}\mathrm {i}-10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,5{}\mathrm {i}+1\right )} \]
[In]
[Out]